

package com.hazelcast.client.impl;

/**
 * Server-side service that provides updates to Clients in regard to
 * last known CP group information, in particular CP leadership
 * information which is used to route operations directly to leaders.
 * <p>
 * Provided as an interface due to Hazelcast OS not providing CP
 * membership information.
 */
public interface CPGroupViewListenerService {

    void onGroupViewChange();

    void registerListener(ClientEndpoint clientEndpoint, long correlationId);

    void deregisterListener(ClientEndpoint clientEndpoint);
}
